<#if isAutoImport?exists && isAutoImport==true>
package com.mygame.common.dbEntity;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.baidu.bjf.remoting.protobuf.annotation.ProtobufClass;
import com.mygame.common.protobuf.ProtoFileMerge;
</#if>
/**
 * @description ${classInfo.classComment}
 * @author ${authorName}
 * @date ${.now?string('yyyy-MM-dd')}
 */
 @ProtobufClass
 @ProtoFileMerge(fileName = "db.proto", filePackage = "db.mysql")
public class ${classInfo.className} implements Serializable {

    private static final long serialVersionUID = 1L;
    public int change = 0; //1更新 2删除

<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0>
<#list classInfo.fieldList as fieldItem >
    <#if isComment?exists && isComment==true>/**
    * ${fieldItem.fieldComment}
    */</#if>
    ${fieldItem.fieldClass} ${fieldItem.fieldName};

</#list>

    /**删除*/
    public void delete() {
        change = 2;
    }

</#if>

<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0>
    public ${classInfo.className}() {
    }

<#list classInfo.fieldList as fieldItem>

    public ${fieldItem.fieldClass} get${fieldItem.fieldName?cap_first}() {
        return ${fieldItem.fieldName};
    }
    public void set${fieldItem.fieldName?cap_first}(${fieldItem.fieldClass} ${fieldItem.fieldName}) {
        this.${fieldItem.fieldName} = ${fieldItem.fieldName};
        change = 1;
    }
</#list>
</#if>
}
